<template>
  <div>
    <div class="movieheader">
      <MyHeader1></MyHeader1>
      <MyHeader2></MyHeader2>
      <div class="childnav">
        <div><a href="../#/City">南宁</a></div>
        <div class="subanv">
          <router-link to="reying">热映</router-link>
          <router-link to="yingyuan">影院</router-link>
          <router-link to="daiying">待映</router-link>
          <router-link to="jingdian">经典电影</router-link>
        </div>
        <div><i class="iconfont icon-sousuo1"></i></div>
      </div>
    </div>
    <div class="movie-con">
      <router-view></router-view>
    </div>
  </div>

</template>

<script>
import MyHeader1 from "../../components/MyHeader1.vue";
import MyHeader2 from "@/components/MyHeader2.vue";

export default {
  name: "Movie",
  components: {
    MyHeader1,
    MyHeader2,
  },
};
</script>

<style scoped>
.movieheader {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  left: 0;
}

.movie-con {
  margin-top: 4.266667rem;
  margin-bottom: 1.333333rem;
}

.childnav {
  width: 100%;
  height: 1.333333rem;
  line-height: 1.333333rem;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
}
.subanv a{
  color: #666;
}
.subanv a.router-link-exact-active{
  border-bottom: 3px solid #f03d37;
  font-size: 16px;
  color: #333;
}

.childnav div:nth-of-type(1),
.childnav div:nth-of-type(3) {
  width: 10%;
}

.childnav div:nth-of-type(2) {
  width: 70%;
  display: flex;
  justify-content: space-around;
  height: 1.2rem;
  line-height: 1.2rem;
}
</style>